﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    C6集成流程配置
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            C6集成流程配置
        </div>
        <div class="options">
        </div>
    </div>
    <table width="100%">
        <tr>
            <td class="adminTitle">
                &nbsp;
            </td>
            <td class="adminData">
                &nbsp;
            </td>
        </tr>
    </table>
    <p>
    </p>
    <table class="adminContent">
        <tr>
            <td>
                <%Html.Telerik().Grid<Microhard.WarehouseInsp.Buz.Models.JHFlowInfo>()
                    .Name("operation-grid")
                       .DataKeys(keys =>
                       {
                           keys.Add(p => p.OtherSysWFID).RouteKey("OtherSysWFID");
                       })
                    .ToolBar(commands =>
                    {
                        commands.Insert().ButtonType(GridButtonType.Text).Text("添加");
                    })
                    .Columns(columns =>
                    {
                        columns.Bound(x => x.WorkflowTypeCode).Title("流程类型Code");
                        columns.Bound(x => x.DJAPPIDForSelect).Title("流程&表单");
                        columns.Command(commands =>
                        {
                            commands.Edit().ButtonType(GridButtonType.Image);
                            commands.Delete().ButtonType(GridButtonType.Image);
                        }).Width(180).Title("操作");
                    })
                      .Pageable(settings => settings.Total(Model.Total).PageSize(Html.GetGridPageSize()).Position(GridPagerPosition.Top))
                     .DataBinding(dataBinding =>
                     {
                         dataBinding.Ajax()
                             .Select("_List", "JHWFConfig")
                             .Insert("_AjaxSaveCreate", "JHWFConfig")
                             .Update("_AjaxSaveUpdate", "JHWFConfig")
                             .Delete("_AjaxDelete", "JHWFConfig");
                     })
                    .EnableCustomBinding(true)
                    .Render();
                %>
            </td>
        </tr>
    </table>
</asp:Content>
